<layout name='Layout/layout_page' />
	<ol class="breadcrumb">
		<li><a href="<{:U('Weixin/index')}>">微信设置</a></li>
      	<li class="active">接口设置</li>
    </ol>

	<form id="ajaxForm" action="<{:U('Site/insert')}>" method="post" class="form-horizontal form-validata">

		<div class="form-group">
			<label class="col-md-1 control-label" for="image_exts">微信号</label>
			<div class="col-md-5">
				<input type="text"
				class="form-control"
				name="weixin_name"
				id="weixin_name"
				data-rule-required="true"
				value="<{:C('weixin_name')}>"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="image_exts">二维码</label>
			<div class="col-md-5">
				<img class="thumbPic" id="weixin_qr_src" src="<?php if(C('weixin_qr')){echo C('weixin_qr');}else{ echo STATICS.'/image/image.jpg';} ?>" />
				<input type="hidden" name="weixin_qr" id="weixin_qr" value="<{:C('weixin_qr')}>" />
				<p class="pic-btn"><input type="button" value="上传" class="btn btn-default btn-sm" onclick="uploadImage( '<{:U('Admin/Upload/singleImage')}>' , 'weixin_qr')"/> <input type="button" value="删除图片" class="btn btn-default btn-sm" onclick="delImage('weixin_qr')"/></p>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="image_exts">APP_ID</label>
			<div class="col-md-5">
				<input type="text"
				class="form-control"
				name="APP_ID"
				id="APP_ID"
				data-rule-required="true"
				value="<{:C('APP_ID')}>"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="image_size">APP_SECRET</label>
			<div class="col-md-5">
				<input type="text"
				class="form-control"
				name="APP_SECRET"
				id="APP_SECRET"
				data-rule-required="true"
				value="<{:C('APP_SECRET')}>"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="file_exts">token</label>
			<div class="col-md-5">
				<input type="text"
				class="form-control"
				name="token"
				id="token"
				data-rule-required="true"
				value="<{:C('token')}>"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="file_size">EncodingAESKey</label>
			<div class="col-md-5">
				<input type="text"
				class="form-control"
				name="EncodingAESKey"
				id="EncodingAESKey"
				data-rule-required="true"
				value="<{:C('EncodingAESKey')}>"
				/>
			</div>
		</div>

		<!--div class="form-group">
			<label class="col-md-1 control-label" for="file_size">访问限制</label>
			<div class="col-md-5">
				<label class="checkbox-inline">
				<input type="checkbox" name="only_weixin" id="only_weixin" value="1" <?php if(C('only_weixin')){echo 'checked';}?> /> 微商城只能在微信中访问
				</label>
			</div>
		</div-->
	
		<div class="form-group">
			<div class="col-md-5 col-md-offset-1">
				<button type="submit" class="btn btn-info"><i class="icon-edit icon-white"></i> 保存微信设置</button>
			</div>
		</div>
		<input type="hidden" name="files" value="weixin.php" />
	</form>
</div>

<input type="hidden" id="menu_action" value="weixin" />